@charset "utf-8";

// PC端
@media (min-width: 1441px) and (max-width: 1680px) {
  .home-container {
    .about-info {
      .about-content {
        .content-title {
          font-size: 30px;
        }
        article {
          padding-right: 100px;
          p {
            font-size: 18px;
          }
        }
        .about-btn {
          width: 140px;
          height: 40px;
          font-size: 18px;
        }
      }
    }
    .lastest-news {
      ul {
        li {
          .news-content {
            .news-title {
              margin: 0 50px;
            }
            .news-date {
              margin: 0 50px;
            }
            article {
              margin: 0 50px;
            }
            .more-link {
              margin: 0 50px;
            }
          }
        }
      }
    }
  }
}

@media (min-width: 1281px) and (max-width: 1440px) {
  .home-container {
    .about-info {
      .about-content {
        .content-title {
          font-size: 26px;
        }
        article {
          padding-right: 100px;
          p {
            font-size: 14px;
          }
        }
        .about-btn {
          width: 120px;
          height: 30px;
          font-size: 14px;
        }
      }
    }
    .lastest-news {
      ul {
        li {
          .news-content {
            .news-title {
              margin: 0 40px;
              font-size: 20px;
            }
            .news-date {
              margin: 0 40px;
            }
            article {
              margin: 0 40px;
            }
            .more-link {
              margin: 0 40px;
            }
          }
        }
      }
    }
  }
}

@media (min-width: 1281px) and (max-width: 1520px) {
  .home-container {
    .welcome-info {
      .part-item {
        margin: 80px 100px 0 100px;
      }
    }
    .hot-product {
      ul {
        margin: 80px 100px;
      }
    }
    .partners {
      margin: 140px 100px 150px;
    }
  }
}

@media (max-width: 1440px) {
  .home-container {
    .part-title {
      p {
        &:nth-child(1) {
          font-size: 40px;
        }
      }
      &:after {
        font-size: 170px;
      }
    }
    .about-info {
      .about-content {
        .content-title {
          padding-left: 20px;
          font-size: 18px;
        }
        article {
          padding: 0 20px;
          p {
            font-size: 15px;
            line-height: 28px;
          }
        }
        .about-btn {
          width: 120px;
          height: 30px;
          font-size: 14px;
          margin-left: 20px;
        }
      }
    }
  }
}

@media (min-width: 1081px) and (max-width: 1280px) {
  .home-container {
    .welcome-info {
      .part-item {
        margin: 80px 50px 0 50px;
      }
    }
    .hot-product {
      ul {
        margin: 80px 50px;
      }
    }
    .lastest-news {
      ul {
        li {
          .news-content {
            .news-title {
              margin: 0 30px;
              font-size: 16px;
            }
            .news-date {
              margin: 0 30px;
            }
            article {
              margin: 0 30px;
            }
            .more-link {
              margin: 0 30px;
            }
          }
        }
      }
    }
    .partners {
      margin: 140px 50px 150px;
    }
  }
}

@media (min-width: 769px) and (max-width: 1081px) {
  .home-container {
    .welcome-info {
      .part-item {
        margin: 80px 15px 0 25px;
        .swiper-wrapper {
          .swiper-slide {
            .part-list-item {
              margin-right: 25px;
            }
          }
        }
      }
    }
    .about-info {
      .about-content {
        article {
          padding: 0 20px;
          p {
            font-size: 13px;
            line-height: 28px;
          }
        }
      }
    }
    .hot-product {
      ul {
        margin: 80px 25px;
      }
    }
    .lastest-news {
      ul {
        li {
          .news-content {
            .news-title {
              margin: 0 20px;
              font-size: 14px;
            }
            .news-date {
              margin: 0 20px;
              font-size: 14px;
            }
            article {
              margin: 0 20px;
              font-size: 12px;
            }
            .more-link {
              margin: 0 20px;
              font-size: 12px;
            }
            &::before {
              border-top: 2px solid $mainColor;
              border-bottom: 2px solid $mainColor;
            }
            &::after {
              border-left: 2px solid $mainColor;
              border-right: 2px solid $mainColor;
            }
            &::after, &::before {
              width: 96%;
              height: 94%;
              top: 3%;
              left: 2%;
            }
          }
        }
      }
    }
    .partners {
      margin: 140px 25px 150px;
    }
  }
}

// 移动端
@media screen and (max-width: 768px) {
  .home-container {
    #swiper-banner {
      .swiper-button-prev,
      .swiper-button-next {
        display: none;
      }
    }
    .part-title {
      h3 {
        font-size: vm(36);
      }
      p {
        line-height: 24px;
        font-size: vm(26);
      }
      &:after {
        font-size: vm(144);
        top: vm(-50);
      }
    }
    .welcome-info {
      margin-top: vm(100);
      .part-item {
        margin: vm(80) vm(50) 0;
        .swiper-wrapper {
          .swiper-slide {
            max-width: vm(330);
            .part-list-item {
              .item-title {
                margin: vm(20) vm(10) 0;
                font-size: vm(26);
                line-height: 120%;
                padding-right: vm(4);
                @include linef(2);
                min-height: vm(70);
              }
              .item-content {
                margin: vm(10);
                font-size: vm(24);
                line-height: 14px;
              }
              .item-img {
                min-height: 41vw;
                background: #fff;
              }
              &:hover {
                transform: translateY(0);
                box-shadow: none;
                .item-title {
                  color: $mainColor;
                }
                .item-img img {
                  opacity: 0.4;
                }
                .item-img a {
                  transform: translate3d(0, 0, 0);
                  opacity: 1;
                }
              }
            }
          }
        }
        .swiper-part-pagination {
          margin: vm(30) 0;
        }
      }
    }
    .about-info {
      position: relative;
      .about-img {
        width: 100%;
        background: $mainColor;
        img {
          opacity: 0.1;
        }
      }
      .about-content {
        padding: vm(20) 0;
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        background: transparent;
        .content-title {
          padding-left: vm(40);
          font-size: vm(36);
          font-weight: bold;
          color: #ffffff;
        }
        article {
          padding-left: vm(40);
          padding-right: vm(30);
          p {
            font-size: vm(30);
            line-height: 150%;
            &:nth-child(2) {
              display: none;
            }
          }
        }
        .about-btn {
          width: vm(200);
          height: vm(80);
          border: 1px solid #ffffff;
          font-size: vm(30);
          font-family: Open Sans;
          margin-left: vm(40);
          transition: ease all 0.5s;
          &:hover {
            background: #ffffff;
            border: 2px solid $mainColor;
            cursor: pointer;
            & a {
              color: $mainColor;
            }
          }
          a {
            color: #ffffff;
          }
        }
      }
    }
    .hot-product {
      margin-top: vm(100);
      ul {
        margin: vm(100) vm(50);
        li {
          width: 48%;
          margin-bottom: vm(50);
          margin-right: vm(14);
          &:nth-of-type(2n) {
            margin-right: 0;
          }
          .pro-img {
            min-height: 40vw;
          }
          .pro-name {
            font-size: vm(26);
            text-align: center;
            line-height: vm(36);
            margin: vm(20) 0;
            @include linef(2);
          }
          .pro-btn {
            display: none;
          }
        }
      }
    }
    .lastest-news {
      ul {
        li {
          width: 100%;
          &:nth-of-type(2n) {
            display: none;
          }
          .news-img {
            width: 50%;
          }
          .news-content {
            width: 50%;
            .news-title {
              margin: vm(8) vm(20) 0;
              font-size: vm(26);
            }
            .news-date {
              margin: vm(5) vm(20);
              font-size: vm(24);
            }
            article {
              display: none;
              margin: 0 vm(20);
              font-size: vm(24);
              line-height: 110%;
            }
            .more-link {
              display: none;
            }
          }
        }
      }
    }
    .partners {
      margin: vm(100) vm(50) vm(150);
      ul {
        margin-top: vm(80);
        li {
          box-sizing: border-box;
          max-width: 33%;
          min-width: 33%;
          height: auto;
          padding-bottom: 0;
          border: none;
          border-top: 1px solid #eeeeee;
          border-left: 1px solid #eeeeee;
          &:nth-of-type(6n) {
            border-top: 1px solid #eeeeee;
            border-left: 1px solid #eeeeee;
            border-right: none;
          }
          &:nth-of-type(3n) {
            border-right: 1px solid #eeeeee;
          }
          &:nth-of-type(n + 7) {
            border-top: 1px solid #eeeeee;
            border-left: 1px solid #eeeeee;
            border-bottom: none;
            &:hover {
              border-bottom: 1px solid #eeeeee;
            }
          }
          &:nth-of-type(n + 10) {
            border-bottom: 1px solid #eee;
          }
          &:hover {
            border-top: 1px solid #eeeeee;
            border-left: 1px solid #eeeeee;
          }
          &:hover + li {
            border-left: 1px solid #eeeeee;
          }
          &:hover + li + li + li + li + li + li {
            border-top: 1px solid #eeeeee;
          }
          &:nth-of-type(6n):hover {
            border-right: 1px solid #eeeeee;
          }
        }
      }
    }
  }
}


@media screen and (min-width: 751px) and (max-width: 768px) {
  .home-container {
    .welcome-info {
      .part-item {
        .swiper-wrapper {
          .swiper-slide {
            .part-list-item {
              .item-title {
                font-size: 18px;
                min-height: 0;
              }
              .item-content {
                font-size: 14px;
              }
            }
          }
        }
      }
    }
    .about-info {
      .about-content {
        .content-title {
          font-size: 28px;
        }
        article {
          p {
            font-size: 24px;;
          }
        }
      }
    }
    .hot-product {
      ul {
        li {
          .pro-name {
            font-size: 24px;
          }
        }
      }
    }
    .lastest-news {
      ul {
        li {
          .news-content {
            .news-title {
              font-size: 24px;
            }
            .news-date {
              font-size: 20px;
            }
            article {
              font-size: 18px;
            }
          }
        }
      }
    }
  }
}
